<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html>
	<head>
		<title>Ruby Library Manager</title>
		<%= stylesheet_link_tag "admin" %>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<script type="text/javascript">
			function checkDelBoxes(parent) {
				var input = document.getElementsByTagName("input");
				for (var i = 0; i < input.length; i++)
					if (input[i].type == "checkbox") {
						input[i].checked = parent;
					}
			}

			function countSelect() {
				var input = document.getElementsByTagName("input");
				var count = 0;
				for (var i = 0; i < input.length; i++)
					if (input[i].type == "checkbox") {
						if (input[i].checked)
							count++;
					}
				return count;
			}
		</script>

	</head>

	<body>
		<!-- Header of the page -->
		<!-- Your should use ruby code to include header file here, default html can not include file -->
		<div id="header">
			<div id="header_infos">
				<span id="header_shopname"> <span>Ruby Library Manager</span> </span>
				<span id="employee_links"> <span class="employee_name">Trang Quản lí</span> <span class="separator"></span> <a id="header_logout" href="/logout"> <span>Thoát</span> </a> </span>

			</div>
			<ul id="menu">
				<li id="maintab0" class="submenu_size maintab">
					<span class="title"> <%= image_tag "home-icon.png", :alt => "", :height => 20%> <a style="color:white" href="/admin/home"> Trang chủ </a> </span>
				</li>
				<li id="maintab1" class="submenu_size maintab">
					<span class="title"> <%= image_tag "try-product.png", :alt => "", :height => 20%> <a style="color:white" href="/admin/book"> Sách</a> </span>
				</li>
				<li id="maintab2" class="submenu_size maintab">
					<span class="title"> <%= image_tag "try-category.png", :alt => "", :height => 20%> <a style="color:white" href="/admin/categories"> Danh mục </a> </span>
				</li>
				<li id="maintab3" class="submenu_size maintab">
					<span class="title"> <%= image_tag "try-customer.png", :alt => "", :height => 20%> <a style="color:white" href="admin_book.html"> Tài khoản </a> </span>
				</li>
				<li id="maintab4" class="submenu_size maintab">
					<span class="title"> <%= image_tag "try-auction.gif", :alt => "", :height => 20%> <a style="color:white" href="/admin/borrow"> Mượn sách </a> </span>
				</li>
			</ul>
		</div>
		<!-- Admin Book content -->
		<div id="login">
			<div class="clear"></div>
			<div id="admin_content">
				<div class="toolbarBox">
					<div style="float:left;">
						<h3 style="font-size:18px;margin-left:10px;font-weight: normal;">Thêm Sách mới</h3>
					</div>
					<ul class="cc_button">
						<li>

							<a id="desc-product-new" class="toolbar_btn" title="Quay lại" href="/admin/book"> <span class="process-icon-new "></span>
							<div>
								Quay lại
							</div> </a>
						</li>
					</ul>
				</div>
				<%= render 'form' %>
			</div>
		</div>
	</body>
</html>

